-- get 参数

local arg = ngx.req.get_uri_args()
for k,v in pairs(arg) do
    ngx.say("[GET] Key: ", k, " Value: ", v)
end

-- post 参数
ngx.req.read_body()
local postArg = ngx.req.get_post_args()
for k,v in pairs(postArg) do
    ngx.say("[POST] Key: ", k, " Value: ", v)
end

-- 输出字符串
local str = "Powered By OpenResty !"
ngx.say(str)
